<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Struct icmp</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="ODTONE 0.4">
<link rel="up" href="../../../odtone_net_library.html#header..home.carlos.Projectos.odtone.inc.odtone.net.ip.icmp.icmp_hpp" title="Header &lt;/home/carlos/Projectos/odtone/inc/odtone/net/ip/icmp/icmp.hpp&gt;">
<link rel="prev" href="checksum.html" title="Class checksum">
<link rel="next" href="icmp/filter.html" title="Class filter">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="'ODTONE - Open Dot Twenty One'" width="100" height="100" src="../../.././images/logo.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="checksum.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../odtone_net_library.html#header..home.carlos.Projectos.odtone.inc.odtone.net.ip.icmp.icmp_hpp"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="icmp/filter.html"><img src="../../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="odtone.net.ip.icmp"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct icmp</span></h2>
<p>odtone::net::ip::icmp</p>
</div>
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../odtone_net_library.html#header..home.carlos.Projectos.odtone.inc.odtone.net.ip.icmp.icmp_hpp" title="Header &lt;/home/carlos/Projectos/odtone/inc/odtone/net/ip/icmp/icmp.hpp&gt;">/home/carlos/Projectos/odtone/inc/odtone/net/ip/icmp/icmp.hpp</a>&gt;

</span>
<span class="keyword">struct</span> <a class="link" href="icmp.html" title="Struct icmp">icmp</a> <span class="special">{</span>
  <span class="comment">// member classes/structs/unions</span>

  <span class="keyword">class</span> <a class="link" href="icmp/filter.html" title="Class filter">filter</a> <span class="special">{</span>
  <span class="keyword">public</span><span class="special">:</span>
    <span class="comment">// <a class="link" href="icmp/filter.html#odtone.net.ip.icmp.filterconstruct-copy-destruct">construct/copy/destruct</a></span>
    <a class="link" href="icmp/filter.html#idp4659096-bb"><span class="identifier">filter</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">)</span><span class="special">;</span>
    <a class="link" href="icmp/filter.html#idp4659504-bb"><span class="identifier">filter</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">,</span> <span class="identifier">uint</span><span class="special">)</span><span class="special">;</span>

    <span class="comment">// <a class="link" href="icmp/filter.html#idp4652904-bb">public member functions</a></span>
    <span class="keyword">void</span> <a class="link" href="icmp/filter.html#idp4653088-bb"><span class="identifier">pass</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">void</span> <a class="link" href="icmp/filter.html#idp4653568-bb"><span class="identifier">pass</span></a><span class="special">(</span><span class="identifier">uint</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">void</span> <a class="link" href="icmp/filter.html#idp4654392-bb"><span class="identifier">block</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">void</span> <a class="link" href="icmp/filter.html#idp4654872-bb"><span class="identifier">block</span></a><span class="special">(</span><span class="identifier">uint</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">int</span> <a class="link" href="icmp/filter.html#idp4655696-bb"><span class="identifier">level</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">ip</span><span class="special">::</span><span class="identifier">icmp</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
    <span class="keyword">int</span> <a class="link" href="icmp/filter.html#idp4656544-bb"><span class="identifier">name</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">ip</span><span class="special">::</span><span class="identifier">icmp</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
    <span class="keyword">const</span> <span class="keyword">void</span> <span class="special">*</span> <a class="link" href="icmp/filter.html#idp4657392-bb"><span class="identifier">data</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">ip</span><span class="special">::</span><span class="identifier">icmp</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
    <span class="identifier">size_t</span> <a class="link" href="icmp/filter.html#idp4658248-bb"><span class="identifier">size</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">ip</span><span class="special">::</span><span class="identifier">icmp</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="special">}</span><span class="special">;</span>

  <span class="keyword">class</span> <a class="link" href="icmp/header.html" title="Class header">header</a> <span class="special">{</span>
  <span class="keyword">public</span><span class="special">:</span>
    <span class="comment">// <a class="link" href="icmp/header.html#odtone.net.ip.icmp.headerconstruct-copy-destruct">construct/copy/destruct</a></span>
    <a class="link" href="icmp/header.html#idp4666904-bb"><span class="identifier">header</span></a><span class="special">(</span><span class="identifier">uint8</span><span class="special">,</span> <span class="identifier">uint8</span><span class="special">)</span><span class="special">;</span>

    <span class="comment">// <a class="link" href="icmp/header.html#idp4660720-bb">public static functions</a></span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> <span class="keyword">static</span> <span class="identifier">T</span> <span class="special">*</span> <a class="link" href="icmp/header.html#idp4660904-bb"><span class="identifier">cast</span></a><span class="special">(</span><span class="keyword">void</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">)</span><span class="special">;</span>

    <span class="comment">// <a class="link" href="icmp/header.html#idp4663112-bb">public member functions</a></span>
    <span class="identifier">uint8</span> <a class="link" href="icmp/header.html#idp4663296-bb"><span class="identifier">type</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
    <span class="identifier">uint8</span> <a class="link" href="icmp/header.html#idp4664384-bb"><span class="identifier">code</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
    <span class="keyword">void</span> <a class="link" href="icmp/header.html#idp4665472-bb"><span class="identifier">checksum</span></a><span class="special">(</span><span class="identifier">uint16</span><span class="special">)</span><span class="special">;</span>
  <span class="special">}</span><span class="special">;</span>

  <span class="keyword">class</span> <a class="link" href="icmp/neighbor_advertisement.html" title="Class neighbor_advertisement">neighbor_advertisement</a> <span class="special">:</span> <span class="keyword">public</span> <span class="identifier">odtone</span><span class="special">::</span><span class="identifier">net</span><span class="special">::</span><span class="identifier">ip</span><span class="special">::</span><span class="identifier">icmp</span><span class="special">::</span><span class="identifier">header</span> <span class="special">{</span>
  <span class="keyword">public</span><span class="special">:</span>
    <span class="comment">// <a class="link" href="icmp/neighbor_advertisement.html#odtone.net.ip.icmp.neighbor_advertisementconstruct-copy-destruct">construct/copy/destruct</a></span>
    <a class="link" href="icmp/neighbor_advertisement.html#idp4680432-bb"><span class="identifier">neighbor_advertisement</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>

    <span class="comment">// <a class="link" href="icmp/neighbor_advertisement.html#idp4670440-bb">public member functions</a></span>
    <span class="keyword">void</span> <a class="link" href="icmp/neighbor_advertisement.html#idp4670624-bb"><span class="identifier">target</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">address_v6</span><span class="special">::</span><span class="identifier">bytes_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">bool</span> <a class="link" href="icmp/neighbor_advertisement.html#idp4672080-bb"><span class="identifier">R</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
    <span class="keyword">bool</span> <a class="link" href="icmp/neighbor_advertisement.html#idp4673088-bb"><span class="identifier">S</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
    <span class="keyword">bool</span> <a class="link" href="icmp/neighbor_advertisement.html#idp4674136-bb"><span class="identifier">O</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
    <span class="keyword">const</span> <span class="identifier">address_v6</span><span class="special">::</span><span class="identifier">bytes_type</span> <span class="special">&amp;</span> <a class="link" href="icmp/neighbor_advertisement.html#idp4675184-bb"><span class="identifier">target</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
    <span class="keyword">void</span> <a class="link" href="icmp/neighbor_advertisement.html#idp4676296-bb"><span class="identifier">R</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">void</span> <a class="link" href="icmp/neighbor_advertisement.html#idp4677648-bb"><span class="identifier">S</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">void</span> <a class="link" href="icmp/neighbor_advertisement.html#idp4679040-bb"><span class="identifier">O</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">)</span><span class="special">;</span>

    <span class="comment">// <a class="link" href="icmp/neighbor_advertisement.html#odtone.net.ip.icmp.neighbor_advertisementpublic-data-members">public data members</a></span>
    <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">uint8</span> <a class="link" href="icmp/neighbor_advertisement.html#odtone.net.ip.icmp.neighbor_advertisement.type_value"><span class="identifier">type_value</span></a><span class="special">;</span>
    <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">uint8</span> <a class="link" href="icmp/neighbor_advertisement.html#odtone.net.ip.icmp.neighbor_advertisement.code_value"><span class="identifier">code_value</span></a><span class="special">;</span>
  <span class="special">}</span><span class="special">;</span>

  <span class="keyword">class</span> <a class="link" href="icmp/neighbor_solicitation.html" title="Class neighbor_solicitation">neighbor_solicitation</a> <span class="special">:</span> <span class="keyword">public</span> <span class="identifier">odtone</span><span class="special">::</span><span class="identifier">net</span><span class="special">::</span><span class="identifier">ip</span><span class="special">::</span><span class="identifier">icmp</span><span class="special">::</span><span class="identifier">header</span> <span class="special">{</span>
  <span class="keyword">public</span><span class="special">:</span>
    <span class="comment">// <a class="link" href="icmp/neighbor_solicitation.html#odtone.net.ip.icmp.neighbor_solicitationconstruct-copy-destruct">construct/copy/destruct</a></span>
    <a class="link" href="icmp/neighbor_solicitation.html#idp4989064-bb"><span class="identifier">neighbor_solicitation</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>

    <span class="comment">// <a class="link" href="icmp/neighbor_solicitation.html#idp4682928-bb">public member functions</a></span>
    <span class="keyword">void</span> <a class="link" href="icmp/neighbor_solicitation.html#idp4683112-bb"><span class="identifier">target</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">address_v6</span><span class="special">::</span><span class="identifier">bytes_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">const</span> <span class="identifier">address_v6</span><span class="special">::</span><span class="identifier">bytes_type</span> <span class="special">&amp;</span> <a class="link" href="icmp/neighbor_solicitation.html#idp4684568-bb"><span class="identifier">target</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>

    <span class="comment">// <a class="link" href="icmp/neighbor_solicitation.html#odtone.net.ip.icmp.neighbor_solicitationpublic-data-members">public data members</a></span>
    <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">uint8</span> <a class="link" href="icmp/neighbor_solicitation.html#odtone.net.ip.icmp.neighbor_solicitation.type_value"><span class="identifier">type_value</span></a><span class="special">;</span>
    <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">uint8</span> <a class="link" href="icmp/neighbor_solicitation.html#odtone.net.ip.icmp.neighbor_solicitation.code_value"><span class="identifier">code_value</span></a><span class="special">;</span>
  <span class="special">}</span><span class="special">;</span>

  <span class="keyword">class</span> <a class="link" href="icmp/router_advertisement.html" title="Class router_advertisement">router_advertisement</a> <span class="special">:</span> <span class="keyword">public</span> <span class="identifier">odtone</span><span class="special">::</span><span class="identifier">net</span><span class="special">::</span><span class="identifier">ip</span><span class="special">::</span><span class="identifier">icmp</span><span class="special">::</span><span class="identifier">header</span> <span class="special">{</span>
  <span class="keyword">public</span><span class="special">:</span>
    <span class="comment">// <a class="link" href="icmp/router_advertisement.html#odtone.net.ip.icmp.router_advertisementconstruct-copy-destruct">construct/copy/destruct</a></span>
    <a class="link" href="icmp/router_advertisement.html#idp5006912-bb"><span class="identifier">router_advertisement</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>

    <span class="comment">// <a class="link" href="icmp/router_advertisement.html#idp4991496-bb">public member functions</a></span>
    <span class="identifier">uint8</span> <a class="link" href="icmp/router_advertisement.html#idp4991680-bb"><span class="identifier">current_hop_limit</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
    <span class="keyword">bool</span> <a class="link" href="icmp/router_advertisement.html#idp4992784-bb"><span class="identifier">M</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
    <span class="keyword">bool</span> <a class="link" href="icmp/router_advertisement.html#idp4993904-bb"><span class="identifier">O</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
    <span class="identifier">uint16</span> <a class="link" href="icmp/router_advertisement.html#idp4995008-bb"><span class="identifier">lifetime</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
    <span class="identifier">uint32</span> <a class="link" href="icmp/router_advertisement.html#idp4996056-bb"><span class="identifier">reachable_time</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
    <span class="identifier">uint32</span> <a class="link" href="icmp/router_advertisement.html#idp4997152-bb"><span class="identifier">retrans_timer</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
    <span class="keyword">void</span> <a class="link" href="icmp/router_advertisement.html#idp4998264-bb"><span class="identifier">current_hop_limit</span></a><span class="special">(</span><span class="identifier">uint8</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">void</span> <a class="link" href="icmp/router_advertisement.html#idp4999712-bb"><span class="identifier">M</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">void</span> <a class="link" href="icmp/router_advertisement.html#idp5001176-bb"><span class="identifier">O</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">void</span> <a class="link" href="icmp/router_advertisement.html#idp5002624-bb"><span class="identifier">lifetime</span></a><span class="special">(</span><span class="identifier">uint16</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">void</span> <a class="link" href="icmp/router_advertisement.html#idp5004016-bb"><span class="identifier">reachable_time</span></a><span class="special">(</span><span class="identifier">uint32</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">void</span> <a class="link" href="icmp/router_advertisement.html#idp5005456-bb"><span class="identifier">retrans_timer</span></a><span class="special">(</span><span class="identifier">uint32</span><span class="special">)</span><span class="special">;</span>

    <span class="comment">// <a class="link" href="icmp/router_advertisement.html#odtone.net.ip.icmp.router_advertisementpublic-data-members">public data members</a></span>
    <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">uint8</span> <a class="link" href="icmp/router_advertisement.html#odtone.net.ip.icmp.router_advertisement.type_value"><span class="identifier">type_value</span></a><span class="special">;</span>
    <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">uint8</span> <a class="link" href="icmp/router_advertisement.html#odtone.net.ip.icmp.router_advertisement.code_value"><span class="identifier">code_value</span></a><span class="special">;</span>
  <span class="special">}</span><span class="special">;</span>

  <span class="keyword">class</span> <a class="link" href="icmp/router_solicitation.html" title="Class router_solicitation">router_solicitation</a> <span class="special">:</span> <span class="keyword">public</span> <span class="identifier">odtone</span><span class="special">::</span><span class="identifier">net</span><span class="special">::</span><span class="identifier">ip</span><span class="special">::</span><span class="identifier">icmp</span><span class="special">::</span><span class="identifier">header</span> <span class="special">{</span>
  <span class="keyword">public</span><span class="special">:</span>
    <span class="comment">// <a class="link" href="icmp/router_solicitation.html#odtone.net.ip.icmp.router_solicitationconstruct-copy-destruct">construct/copy/destruct</a></span>
    <a class="link" href="icmp/router_solicitation.html#idp5009608-bb"><span class="identifier">router_solicitation</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>

    <span class="comment">// <a class="link" href="icmp/router_solicitation.html#odtone.net.ip.icmp.router_solicitationpublic-data-members">public data members</a></span>
    <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">uint8</span> <a class="link" href="icmp/router_solicitation.html#odtone.net.ip.icmp.router_solicitation.type_value"><span class="identifier">type_value</span></a><span class="special">;</span>
    <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">uint8</span> <a class="link" href="icmp/router_solicitation.html#odtone.net.ip.icmp.router_solicitation.code_value"><span class="identifier">code_value</span></a><span class="special">;</span>
  <span class="special">}</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="idp20291344"></a><h2>Description</h2>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright &#169; 2009-2012 Universidade
      Aveiro<br>Copyright &#169; 2009-2012 Instituto
      de Telecomunica&#231;&#245;es - P&#243;lo Aveiro<p>
        This software is distributed under a license. The full license agreement
        can be found in the LICENSE in this distribution. This software may not be
        copied, modified, sold or distributed other than expressed in the named license
        agreement. This software is distributed without any warranty.
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="checksum.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../odtone_net_library.html#header..home.carlos.Projectos.odtone.inc.odtone.net.ip.icmp.icmp_hpp"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="icmp/filter.html"><img src="../../../images/next.png" alt="Next"></a>
</div>
</body>
</html>
